/**
 * @file   1125.cpp
 * @author Shuang Hu <hsmath@ubuntu>
 * @date   Wed Jun  2 22:54:28 2021
 * 
 * @brief  PAT 1125
 * 
 * 
 */
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
    int N;
    cin>>N;
    vector<int> vec;
    for(int i=0;i<N;i++){
	int d;
	cin>>d;
	vec.push_back(d);
    }
    sort(vec.begin(),vec.end());
    double sum=vec[0];
    for(int i=1;i<N;i++){
	sum=(sum+vec[i])*1.0/2;
    }
    cout<<(int)sum<<endl;
}
